package cn.net.dpi.shp.model.entity;

import cn.net.dpi.shp.handler.PolygonTypeHandler;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import org.locationtech.jts.geom.Polygon;

/**
 * 交通标牌实体
 *
 * @author ake
 * @since 2024-12-27
 */
@Getter
@Setter
@TableName(value = "hd_sign", autoResultMap = true)
public class HdSign extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 设施编号主键，全国唯一
     */
    private String objectId;

    /**
     * 图幅编号
     */
    private String meshId;

    /**
     * 行政区划代码
     */
    private String adminCode;

    /**
     * 设施几何形态
     */
    private String objectGeo;

    /**
     * 关联道路编号外键，引用 hd_link 表 link_id
     */
    private String refLink;

    /**
     * 交通标牌类型可多选，用“丨”分开
     */
    private String type;

    /**
     * 子类型可多选，用“丨”分开
     */
    private String type1;

    /**
     * 关联交通标牌可多选，用“丨”分开
     */
    private String refSign;

    @TableField(typeHandler = PolygonTypeHandler.class)
    private Polygon geometry;

    private Long fileId;

    private String version;

    private Integer versionFlag;
}
